package com.qyer.lxp.model.location.normal;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

/**
 * 获取地理位置(国家/城市/区域)信息
 * Created by jiangping on 16/5/13.
 */
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Location implements Serializable{
    private static final long serialVersionUID = 3728286107027185353L;

    private String type;

    @XmlElement(name = "short-name")
    private String shortName;

    private String name;

    @XmlElement(name = "name-cn")
    private String nameCn;

    private String code;

    @XmlElement(name = "parent-code")
    private String parentCode;

    @XmlElement(name = "look-up-code")
    private String lookUpCode;

    private String hot;

    private double lat;

    private double lon;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNameCn() {
        return nameCn;
    }

    public void setNameCn(String nameCn) {
        this.nameCn = nameCn;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public String getLookUpCode() {
        return lookUpCode;
    }

    public void setLookUpCode(String lookUpCode) {
        this.lookUpCode = lookUpCode;
    }

    public String getHot() {
        return hot;
    }

    public void setHot(String hot) {
        this.hot = hot;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public double getLon() {
        return lon;
    }

    public void setLon(double lon) {
        this.lon = lon;
    }

    @Override
    public String toString() {
        return "Location{" +
                "type='" + type + '\'' +
                ", shortName='" + shortName + '\'' +
                ", name='" + name + '\'' +
                ", nameCn='" + nameCn + '\'' +
                ", code='" + code + '\'' +
                ", parentCode='" + parentCode + '\'' +
                ", lookUpCode='" + lookUpCode + '\'' +
                ", hot='" + hot + '\'' +
                ", lat=" + lat +
                ", lon=" + lon +
                '}';
    }
}
